home *** CD-ROM | disk | FTP | other *** search
- #include <Errors.h>
-
- int number;
-
- /* ============================================ */
- /* This is a very simple MPW C program, which */
- /* illustrates how to set SADE breakpoints. */
- /* -------------------------------------------- */
- /* Note that this program is designed to crash, */
- /* in order to force entry into the SADE */
- /* debugger! (i.e. the SysError call). */
- /* -------------------------------------------- */
- /* Joe Pillera, June 1989. */
- /* ============================================ */
-
- main()
- {
- /* Set breakpoint #1 here (from SADE worksheet) */
- number = 1;
-
- /* Now pass control to func, and let */
- /* it alter the "number" variable. */
- func();
-
- /* Hard code breakpoint #3 here - just before we exit */
- SysError(129);
- }
-
-
-